package org.springframework.liukai.test.config;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;
import org.springframework.liukai.test.bean.Person;

/**
 * @author liukai
 * @date 2022/7/15 15:47
 */
@Configuration
@ComponentScan(basePackages = "org.springframework.liukai.test")
public class JavaConfig {

	@Bean
	public Person person() {
		Person person = new Person();
		person.setId(0);
		person.setName("default");
		return person;
	}

}
